package com.lxyk.mapper.impl;

import com.lxyk.mapper.MoneyMapper;
import com.lxyk.pojo.Money;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class MoneyMapperImpl extends SqlSessionDaoSupport implements MoneyMapper {


    @Override
    public int update1(int money, String name) {
        return getSqlSession().getMapper(MoneyMapper.class).update1(money,name);

    }

    @Override
    public int update2(int money, String name) {
        return getSqlSession().getMapper(MoneyMapper.class).update2(money,name);

    }

    @Override
    public List<Money> selectAll() {
        return getSqlSession().getMapper(MoneyMapper.class).selectAll();

    }
}
